{{foreach from=$inventory item=user}}
<!-- user -->
<div id="user_{{$user.id}}" class="user" onclick="user_open({{$user.id}});" title="{{$user.name}}" onclick="user_open({{$user.id}});">
	{{$user.name}}<br />
	<span>{{$user.username}}</span>
</div>

<!-- menu -->
<div dojoType="dijit.Menu"
	 targetNodeIds="user_{{$user.id}}"
	 style="display: none;">
    <div dojoType="dijit.MenuItem" iconClass="icon_copy" onClick="alert('Hello world');">Kopieren</div>
    <span dojoType="dijit.MenuSeparator"></span>
    <div dojoType="dijit.MenuItem"
	 	 iconClass="icon_delete"
	 	 onClick="user_delete({{$user.id}});"
	 	  {{if !$user.is_writeable}} disabled="disabled"{{/if}}>
   		Löschen
   	</div>
</div>
{{/foreach}}